<?php
    require_once 'include/iCalcreator.class.php';
    $v = new vcalendar( array( 'unique_id' => 'tu-braunschweig.de' ));
                                                // initiate new CALENDAR
    $v->setProperty( 'X-WR-CALNAME'
               , 'Semestertermine TU Braunschweig' );          // set some X-properties, name, content.. .
$v->setProperty( 'X-WR-CALDESC'
               , 'Kalender Semestertermine TU Braunschweig SS2012' );
$v->setProperty( 'X-WR-TIMEZONE'
               , 'Europe/Berlin' );

$e = & $v->newComponent( 'vevent' );           // initiate a new EVENT
$e->setProperty( 'categories'
               , 'Education' );                   // catagorize
$e->setProperty( 'dtstart'
               ,  '20111024');  // Datum
$e->setProperty( 'summary', 'Beginn der Lehrveranstaltungen WS2011/2012');
$e->setProperty( 'description'
               , 'Beginn der Lehrveranstaltungen WS2011/2012' );    // describe the event
$e->setProperty( 'location'
               , 'TU Braunschweig' );                     // locate the event


$e = & $v->newComponent( 'vevent' );           // initiate a new EVENT
$e->setProperty( 'categories'
               , 'Education' );                   // catagorize
$e->setProperty( 'dtstart'
               ,  '20111223');  // Datumstart
$e->setProperty( 'dtend', '20120109'); //Datumende
$e->setProperty( 'summary', 'Weihnachtsferien WS2011/2012');
$e->setProperty( 'description'
               , 'Weihnachtsferien WS2011/2012' );    // describe the event
$e->setProperty( 'location'
               , 'TU Braunschweig' );


$e = & $v->newComponent( 'vevent' );           // initiate a new EVENT
$e->setProperty( 'categories'
               , 'Education' );                   // catagorize
$e->setProperty( 'dtstart'
               ,  '20120211');  // Datum
$e->setProperty( 'summary', 'Ende der Lehrveranstaltungen WS2011/2012');
$e->setProperty( 'description'
               , 'Ende der Lehrveranstaltungen WS2011/2012' );    // describe the event
$e->setProperty( 'location'
               , 'TU Braunschweig' );


/* alt. production */
$v->returnCalendar();                       // generate and redirect output to user browser
?>